package com.houweishi.module.oaEntry.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;
import lombok.Data;

import java.time.LocalDate;
import java.util.StringJoiner;

/**
 * 教育培训经历对象 oa_entry_education_experience
 * 
 * @author houweishi
 * @date 2023-07-19
 */
@Data
public class OaEntryEducationExperience extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 入职申请id */
    @Excel(name = "入职申请id")
    private Long entryId;

    /** 开始年月 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始年月", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate startDate;

    /** 结束年月 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束年月", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate endDate;

    /** 毕业院校 */
    @Excel(name = "毕业院校")
    private String school;

    /** 专业 */
    @Excel(name = "专业")
    private String profession;

    /** 技能 */
    @Excel(name = "技能")
    private String skill;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Override
    public String toString() {
        return new StringJoiner(", ", OaEntryEducationExperience.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("entryId=" + entryId)
                .add("startDate=" + startDate)
                .add("endDate=" + endDate)
                .add("school='" + school + "'")
                .add("profession='" + profession + "'")
                .add("skill='" + skill + "'")
                .add("delFlag='" + delFlag + "'")
                .toString();
    }
}
